package com.lotusfall.service.impl;

import com.lotusfall.dao.StudentDao;
import com.lotusfall.model.Student;
import com.lotusfall.service.StudentService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    private StudentDao studentDao;

    @Override
    public Student queryStudent(Long id) {
        Student student = studentDao.selectById(id);
        return student;
    }
}
